package com.cropdoctor.service;

import com.cropdoctor.common.Result;
import com.cropdoctor.model.constants.PageParams;
import com.cropdoctor.model.constants.PageResult;
import com.cropdoctor.model.po.SysUserPo;
import com.cropdoctor.model.po.VegeFrutablePo;
import com.cropdoctor.model.vo.UserVO;
import org.springframework.web.multipart.MultipartFile;

public interface AdminService {
    Result<String> adminAddVegAndFruTable(VegeFrutablePo vegeFrutablePo,MultipartFile file);

    Result<String> deleteById(long idTable);

    Result<String> updateById(VegeFrutablePo vegeFrutablePo);

    Result<String> addAdmin(SysUserPo sysUserPo, MultipartFile img);

    Result<String> changeUserStatus(Integer idUser,String status);

    Result<String> resetPassword(Integer idUser);

    Result<PageResult<UserVO>> getAllUser(PageParams pageParams, String account);

    Result<SysUserPo> getUser(Integer idUser);

    Result<String> changeRole(Long userId, int roleId);
}
